home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Original Shareware 1.1
/
The Original Shareware (WeMake CDs)(Volume 1.1)(CDs, Inc)(1993).iso
/
32
/
bsl.zip
/
SOME.DOC
< prev
Wrap
Text File
|
1990-02-21
|
896b
|
22 lines
Well, here is some example BSL (Begin Strategy Language) code
to show what BSL looks like. This code is part of the
testing strategy for V2.0 of begin. As you can see, BSL looks
a lot like C. The major extensions to C are a "list" data type
and the ability to spawn functions as independent tasks. You
can also send and receive messages from spawned functions.
The main program (at the bottom of the file) spawns off many
housekeeping tasks and then waits for a message from any of them.
The messages that it understands are NEW_ENEMY and NO_ENEMY (sent
by the Threat task) and NOT_WORKING (sent by the Success task).
If this were an ally strategy, the main program would also be able
to receive messages from you (such as [ESCORT Washington 2000]).
If there are specific questions about BSL, leave a message on the board
and I will try to answer it.
Mike Higgins